package com.bawei.es.service;

import com.bawei.common.core.domain.R;
import com.bawei.system.domain.CreateEsinfo;
import com.bawei.system.domain.EsMallProductInfo;
import com.bawei.system.domain.EsProduct;
import com.bawei.system.domain.SearchResult;
import com.bawei.system.domain.vo.PageVo;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface EsIndexService {
    R<Boolean> indexCreate(String indexName);

    R<Boolean> indexExit(String indexName);

    R<Boolean> indexDelete(String indexName);

    R<Boolean> indexCreateWithMapping(CreateEsinfo createEsinfo);


    R<Map<String, Object>> indexGtMapping(String indexName);

    R<Boolean> indexUpdate(String indexName, EsMallProductInfo esMallProductInfo);


    List<String> getAllIndex();

}
